package com.hnkywl.sts.entity.base;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.sys.Yg;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-20
 * Time: 下午8:39
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_SYS_JKPZ")
@Where(clause = "deleted!='1'")
public class Jkpz extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqJkpz", allocationSize = 1, sequenceName = "SEQ_SYS_JKPZ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqJkpz")
    private Long id;

    /**
     * 编码
     */
    private String bm;
    /**
     * 开关
     */
    private Boolean flag = false;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }
}
